﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：FundsOperatingTypeVM
// 文件功能描述：增减款类型models层
//
// 
// 创建标识：2012-02-23 王冲
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace WaiGaoQiaoWeb.Models
{
    public class FundsOperatingTypeVM
    {
        [Required(ErrorMessage = "增减代号不能为空")]
        [Display(Name = "增减代号")]
        [Remote("CheckFundsOperatingType", "FundsOperatingType", AdditionalFields = "DepositTypeID", HttpMethod = "POST", ErrorMessage = "已存在此增减代号")]
        /// <summary>
        /// 主键，类别编号
        /// </summary>
        public int DepositTypeID
        {
            get;
            set;
        }
        [Required(ErrorMessage = "增减名称不能为空")]
        [Display(Name = "增减名称")]
        /// <summary>
        /// 类别名称
        /// </summary>
        public string DepositName
        {
            get;
            set;
        }
        [Display(Name = "类别")]
        /// <summary>
        /// 类型(0、1)
        /// </summary>
        public int Account
        {
            get;
            set;
        }
        /// <summary>
        /// 类型(增款类型、减款类型)
        /// </summary>
        public string AccountName
        {
            get;
            set;
        }
        [Display(Name = "是否使用中")]
        /// <summary>
        /// 是否使用中(0、1)
        /// </summary>
        public int bUse
        {
            get;
            set;
        }
        /// <summary>
        /// 是否使用中(是、否)
        /// </summary>
        public string bUseName
        {
            get;
            set;
        }

        public int OldDepositTypeID
        {
            get;
            set;
        }

        public string AddEdit
        {
            get;
            set;
        }

        /// <summary>
        /// 是否显示布尔型
        /// </summary>
        public bool blBShow
        {
            get;
            set;
        }
    }
}